package com.wqiuqiu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wqiuqiu.common.PageUtils;
import com.wqiuqiu.gulimall.product.entity.AttrEntity;
import com.wqiuqiu.gulimall.product.entity.ProductAttrValueEntity;
import com.wqiuqiu.gulimall.product.vo.AttrResVo;
import com.wqiuqiu.gulimall.product.vo.AttrVo;
import com.wqiuqiu.gulimall.product.vo.RelGroupAndAttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author wqiuqiu
 * @email 18773489795@163.com
 * @date 2023-11-27 14:08:58
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

//    PageUtils queryBaseAttrPage(Map<String, Object> params, Long categoryId);

    AttrResVo getAttrById(Long attrId);

    void updateAttrVo(AttrVo attr);

    PageUtils queryAttrPage(Map<String, Object> params, Long categoryId, String type);

    List<ProductAttrValueEntity> getSpuAttrInfoBySpuId(Long spuId);

    List<Long> getSearchAttrs(List<Long> ids);
}

